package com.anjie.powerproject;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 要打成war包，必须要创建继承自SpringBootServletInitializer的启动类，否则tomcat会找不到启动类
 */
public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PowerProjectApplication.class);
    }

}